﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Model;
using Controller;

namespace Facade
{
    public class sysLogFacade
    {
        public string Save(sysLog sysLogs)
        {
            sysLogController cont = new sysLogController();
            return cont.Save(sysLogs);
        }

        public string Delete(int LogID)
        {
            sysLogController cont = new sysLogController();
            return cont.Delete(LogID);
        }

       

        public IList<sysLog> GetAll(string sSearch, int PageNumber, int DataLength, string SortCol, string SortDirection, out int TotalData, int BusinessGroupID)
        {
            IList<sysLog> sysLogs = new List<sysLog>();
            sysLogController cont = new sysLogController();
            sysLogs = cont.GetAll(sSearch, PageNumber, DataLength, SortCol, SortDirection, out TotalData, BusinessGroupID);
            return sysLogs;
        }

        public sysLog GetsysLogByID(int ID)
        {
            sysLog sysLogs = new sysLog();
            sysLogController cont = new sysLogController();
            sysLogs = cont.GetByID(ID);
            return sysLogs;
        }

        
    }
}